package com.xyzh.stj.web.service.impl;

import com.xyzh.stj.web.entity.RoleEntity;
import com.xyzh.stj.web.dao.RoleMapper;
import com.xyzh.stj.web.entity.UserRoleEntity;
import com.xyzh.stj.web.service.RoleService;
import com.xyzh.stj.web.service.UserRoleService;
import com.xyzh.application.base.service.BasicServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 角色 服务实现类
 * </p>
 *
 * @author @JZB
 * @since 2023-10-29
 */
@Service
public class RoleServiceImpl extends BasicServiceImpl<RoleMapper, RoleEntity> implements RoleService {


    @Autowired
    private UserRoleService userRoleService;


    @Override
    public List<RoleEntity> getRoleByUserid(String userid){
      return  this.getBaseMapper().getRoles(userid);
    }


}
